import {
	ref
} from "vue"

// 协议
export default function() {
	// 状态
	let isAgree = ref(false)
	
	// 勾选
	function check() {
		isAgree.value = !isAgree.value
	}
	
	// 查看
	function look(type){
		console.log(type);
	}
	
	// 向外暴露属性或方法
	return {
		isAgree,
		check,
		look
	}
}